<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Insert title here</title>
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../../css/easyui/default/easyui.css"/>
		<script type="text/javascript" src="../../js/jquery.min.js"></script>
		<script type="text/javascript" src="../../js/bootstrap/bootstrap.min.js"></script>
		<script type="text/javascript" src="../../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../../js/easyui/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="../../js/self/util.js"></script>
		<script type="text/javascript" src="../../js/self/ssm.operate.js"></script>
		<script type="text/javascript" src="../../js/bootstrap/laydate.js"></script>
	</head>
	<body>
		<form id="form_operateEntity" th:action="@{/asset/operate}" method="post" get_url="/asset/get">
			<input type="hidden" name="id" th:value="${id}">
			<table class="table table-bordered" style="width: 50%;" id="table_operateEntity">
				<tr>
					<td width="20%">资产型号</td>
					<td width="50%">
						<input id="valid_text_assetTypeNo" name="assetTypeNo" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validAssetTypeNo">资产型号不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">资产名称</td>
					<td width="50%">
						<input id="valid_text_assetName" name="assetName" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validAssetName">资产名称不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">资产标签</td>
					<td width="50%">
						<select id="valid_select_labelId" class="form-control" name="labelId">
							<option value="">---无---</option>
							<option th:each="label: ${labelList}" th:value="${label.id}" th:text="${label.name}"
									th:selected="${label.id == asset.labelId}"></option>
						</select>
					</td>
					<td><span id="span_validLabelId">资产标签不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">资产描述</td>
					<td width="50%">
						<input id="valid_text_assetDesc" name="assetDesc" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validAssetDesc">资产描述不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">资产类型</td>
					<td width="50%">
						<select id="valid_select_categoryId" class="form-control" name="categoryId">
							<option value="">---无---</option>
							<option th:each="category: ${categoryList}" th:value="${category.id}" th:text="${category.name}"
									th:selected="${category.id == asset.categoryId}"></option>
						</select>
					</td>
					<td><span id="span_validCategoryId">资产类型id不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">资产状态</td>
					<td width="50%">
						<select id="valid_select_assetStatus" class="form-control" name="assetStatus">
							<option value="">---请选择---</option>
							<option value="使用中" th:selected="${asset.assetStatus == '使用中'}">使用中</option>
							<option value="维修中" th:selected="${asset.assetStatus == '维修中'}">维修中</option>
							<option value="已报废" th:selected="${asset.assetStatus == '已报废'}">已报废</option>
						</select>
					</td>
					<td><span id="span_validAssetStatus">资产状态不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">所属机构</td>
					<td width="50%">
						<select id="valid_select_orgId" class="form-control" name="orgId">
							<option value="">---无---</option>
							<option th:each="organization: ${organizationList}" th:value="${organization.id}" th:text="${organization.orgName}"
									th:selected="${organization.id == asset.orgId}"></option>
						</select>
					</td>
					<td><span id="span_validOrgId">所属机构不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">资产负责人</td>
					<td width="50%">
						<input id="valid_text_assetUser" name="assetUser" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validassetUser">资产负责人不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">资产登记时间</td>
					<td width="50%">
						<input name="createTime" class="form-control" autocomplete="off" readonly/>
					</td>
					<td></td>
				</tr>
				<tr>
					<td width="20%">资产最近更新时间</td>
					<td width="50%">
						<input name="updateTime" class="form-control" autocomplete="off" readonly/>
					</td>
					<td></td>
				</tr>
				<tr>
					<td colspan="3">
						<button type="button" class="btn btn-success" id="button_sureOperate">确定</button>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
